#ifndef FTPSESSION_H
#define FTPSESSION_H

#include <QObject>
#include <QThread>
#include <QTcpServer>
#include "ftpserverpi.h"
#include "ftpserverdtp.h"
#include "serverconfig.h"

class FtpSession : public QObject
{
    Q_OBJECT
public:
    explicit FtpSession(qintptr socketDescriptor, const ServerConfig &serverConfig,
                        QObject *parent = nullptr);
    ~FtpSession();

private:
    FtpServerPI *m_pi;
    FtpServerDTP *m_dtp;
    QThread m_piThread;
    QThread m_dtpThread;
};

#endif // FTPSESSION_H
